/**
 * 
 */
package com.vision.core.cm.util;

import java.util.Date;

/**
 * Abstraction interface used to provide a unified API for GWT and Java
 * date formatting and parsing operations.
 * 
 * @author Mark
 *
 */
public interface IDateFormat {
	
	/**
	 * Returns a String representing <tt>date</tt> using <tt>format</tt>.
	 * 
	 * @param date
	 * @param format
	 * @return
	 */
	String format(Date date, String format);
	
	/**
	 * Returns a {@link Date} from <tt>dateAsString</tt> using <tt>format</tt>. 
	 * 
	 * @param dateAsString
	 * @param format
	 * @return
	 */
	Date parse(String dateAsString, String format);

}
